package org.opens.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/config")
public class ConfigController {

    @Value("${commonConfigValue}")
    private String commonConfigValue;

    @Value("${privateConfigValue}")
    private String privateConfigValue;

    @RequestMapping(value = "/common")
    public String showCommonConfigValue() {
        return commonConfigValue;
    }

    @RequestMapping(value = "/private")
    public String showPrivateConfigValue() {
        return privateConfigValue;
    }

}
